package com.cencat.user.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * 令牌刷新DTO
 * @author cencat
 * @since 2024-01-01
 */
@Data
@Schema(description = "令牌刷新请求")
public class TokenDTO {

    @NotBlank(message = "刷新令牌不能为空")
    @Schema(description = "刷新令牌", required = true)
    private String refreshToken;

    @Schema(description = "访问令牌", required = true)
    private String accessToken;

    @Schema(description = "客户端ID", example = "cencat-web")
    private String clientId;

    @Schema(description = "授权类型", example = "refresh_token")
    private String grantType = "refresh_token";

    @Schema(description = "租户ID", example = "1")
    private Long tenantId;
}